package com.example.wechatdaka.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author lx
 * @since 2020-11-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("lx_checkwork")
public class Checkwork implements Serializable {

    private static final long serialVersionUID = 1L;


    @TableId(value = "id", type = IdType.ID_WORKER)
//    @JSONField(serializeUsing = ToStringSerializer.class)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    /**
     * user表id，考勤发布人
     */
    @TableField("lxUserId")
    private String lxUserId;
    /**
     * user表id，考勤发布人
     */
    @TableField(exist = false)
    private String lxUsername;
    @TableField("lxClazzId")
    private String lxClazzId;
    @TableField("lxClazzName")
    private String lxClazzName;

    /**
     * 考勤名称
     */
    @TableField("lxCheckWorkName")
    private String lxCheckWorkName;

    /**
     * 考勤时效
     */
    @TableField("lxCheckAging")
    private String lxCheckAging;

    /**
     * 发布时间
     */
    @TableField("lxReleaseTime")
    private Date lxReleaseTime;


}
